var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var ProductsSchema = new mongoose.Schema({//定义数据模型
    cateId: mongoose.Schema.ObjectId,
    title:String,
    content:String
    
 });
 ProductsSchema.plugin(mongoosePaginate);
 module.exports=mongoose.model('Products', ProductsSchema);